#{extends 'main.html' /} #{set title:'Home' /}
<!-- This is the page where the user enters his amendments and it's then saved
	for the creator/contributors.
@author Rana A. Zakaria
-->
<head>
<script type="text/javascript">
	tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
		
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
	    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,cleanup,help,code,|,forecolor,backcolor",
	    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
	    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
	    theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "center",
        theme_advanced_resizing : true,
        skin : "o2k7"
	});
</script>
</head>

<body>
	<h2>
		<br> <br> Please enter here your amendments:
	</h2>



	<form action="@{Tutorials.requestToEdit()}" method="POST">

		<input type="hidden" name="tutorialId"
			value="${temptutorialTutorial.id}" /> <input type="hidden"
			name="oldContent" value="${temptutorialTutorial.content}" />

		<textarea name="editBody" style="WIDTH: 300px; HEIGHT: 300px">${temptutorialTutorial.content}</textarea>

		<br> <br> <br>
		<button type="submit">Submit the amendments</button>

	</form>
	<br>
	<a href="@{Tutorials.tutorialPage(temptutorialTutorial.id)}">Back to Tutorial</a>

</body>
